//using LoLReplayHeader;

foreach (string replayPath in Directory.GetFiles("c:\\Replays\\", "*.lrf"))
{
	// Read replay header
	ReplayHeader replayHeader = ReplayHeader.ReadReplayHeader(replayPath);

	Console.WriteLine("Filename: " + replayHeader.FileInfo.FileName);
	Console.WriteLine("  - Created: " + replayHeader.FileInfo.Created);
	Console.WriteLine("  - Filesize: " + replayHeader.FileInfo.FileSizeInMb);
	//replayHeader.FileInfo.FileSizeInByte
	Console.WriteLine("  - Map name: " + replayHeader.MapName);
	Console.WriteLine("  - Timespan: " + replayHeader.TotalTimeSpan);
	Console.WriteLine("  - Directory: " + replayHeader.FileInfo.Directory);
	Console.WriteLine("  - Full path: " + replayHeader.FileInfo.FullPath);
	
	// Team 1
	Console.WriteLine("  - Team 1 (Summoner / Champion)");
	foreach (Player player in replayHeader.PlayersTeam1)
	{
		Console.WriteLine(string.Format("    - {0} / {1}",
			player.SummonerName,
			player.ChampionName));
		//player.ChampionWorkingName
	}

	// Team 2
	Console.WriteLine("  - Team 2 (Summoner / Champion)");
	foreach (Player player in replayHeader.PlayersTeam2)
	{
		Console.WriteLine(string.Format("    - {0} / {1}",
			player.SummonerName,
			player.ChampionName));
		//player.ChampionWorkingName
	}

	Console.WriteLine();
}
